package cn.deschen.search.mysql.senders;

import cn.deschen.search.mysql.BinlogRowData;
import cn.deschen.search.mysql.handlers.BinlogRowDataHandlerFactory;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author hanbin_chen
 * @Description 索引数据同步处理
 * @DateTime 2021/6/10
 * @Version V1.0.0
 */
@Slf4j
public class IndexSyncSender implements IndexSender {

    @Override
    public void sender(BinlogRowData rowData) {
        BinlogRowDataHandlerFactory.getHandler(rowData.getDatabase(), rowData.getTableName()).handlerBinlogRowData(rowData);
    }
}
